<?php

namespace app\admin\model\auth;

use think\Model;

class Permissions extends Model
{

    protected $json=['code'];
    protected $jsonAssoc=true;
    public function getGroupCodeAttr($value)
    {
        $auth=config('view.auth_group');

        return $auth[$value];
    }

}